<?xml version="1.0"?>
<sequence version="3.00" name="Post OS Installation Task Sequence" description="A task sequence for configuring an Operating System after install">
  <group name="Configure EDGE1" disable="false" continueOnError="false" description="" expand="true">
    <step type="SMS_TaskSequence_RunCommandLineAction" name="Rearm Windows" description="" disable="false" continueOnError="false" startIn="" successCodeList="0 3010" runIn="WinPEandFullOS">
      <defaultVarList>
        <variable name="PackageID" property="PackageID" />
        <variable name="RunAsUser" property="RunAsUser">false</variable>
        <variable name="SMSTSRunCommandLineUserName" property="SMSTSRunCommandLineUserName"></variable>
        <variable name="SMSTSRunCommandLineUserPassword" property="SMSTSRunCommandLineUserPassword"></variable>
        <variable name="LoadProfile" property="LoadProfile">false</variable>
      </defaultVarList>
      <action>cscript C:\Windows\System32\slmgr.vbs -rearm</action>
      <condition>
        <operator type="and">
          <expression type="SMS_TaskSequence_VariableConditionExpression">
            <variable name="Variable">RearmWindows</variable>
            <variable name="Operator">equals</variable>
            <variable name="Value">YES</variable>
          </expression>
        </operator>
      </condition>
    </step>
    <step type="BDD_RunPowerShellAction" name="Set Desktop Background" description="" disable="false" continueOnError="false" successCodeList="0 3010">
      <defaultVarList>
        <variable name="ScriptName" property="ScriptName">%SCRIPTROOT%\ZTIDesktopBackground.ps1</variable>
        <variable name="Parameters" property="Parameters"></variable>
        <variable name="PackageID" property="PackageID" />
      </defaultVarList>
      <action>cscript.exe "%SCRIPTROOT%\ZTIPowerShell.wsf</action>
      <condition>
        <operator type="and">
          <expression type="SMS_TaskSequence_VariableConditionExpression">
            <variable name="Variable">SetDesktopBackground</variable>
            <variable name="Operator">equals</variable>
            <variable name="Value">YES</variable>
          </expression>
        </operator>
      </condition>
    </step>
    <step type="SMS_TaskSequence_SetVariableAction" name="Set Phase" description="" disable="false" continueOnError="false" successCodeList="0 3010">
      <defaultVarList>
        <variable name="VariableName" property="VariableName">PHASE</variable>
        <variable name="VariableValue" property="VariableValue">STATERESTORE</variable>
      </defaultVarList>
      <action>cscript.exe "%SCRIPTROOT%\ZTISetVariable.wsf"</action>
    </step>
    <step type="BDD_Gather" name="Gather EDGE1" disable="false" continueOnError="false" successCodeList="0 3010" description="" startIn="">
      <defaultVarList>
        <variable name="GatherLocalOnly" property="GatherLocalOnly">false</variable>
        <variable name="RulesFile" property="RulesFile">EDGE1.INI</variable>
      </defaultVarList>
      <action>cscript.exe "%SCRIPTROOT%\ZTIGather.wsf"</action>
    </step>
    <step type="SMS_TaskSequence_RunCommandLineAction" name="Disable Server Manager at Startup" description="" disable="false" continueOnError="false" startIn="" successCodeList="0 3010" runIn="WinPEandFullOS">
      <defaultVarList>
        <variable name="PackageID" property="PackageID" />
        <variable name="RunAsUser" property="RunAsUser">false</variable>
        <variable name="SMSTSRunCommandLineUserName" property="SMSTSRunCommandLineUserName"></variable>
        <variable name="SMSTSRunCommandLineUserPassword" property="SMSTSRunCommandLineUserPassword"></variable>
        <variable name="LoadProfile" property="LoadProfile">false</variable>
      </defaultVarList>
      <action>cmd.exe /c REG ADD HKLM\Software\Microsoft\ServerManager /v DoNotOpenServerManagerAtLogon /t REG_DWORD /d 1 /f</action>
    </step>
    <group expand="true" name="Configure TCP/IP." description="" disable="false" continueOnError="false">
      <step type="BDD_RunPowerShellAction" name="Reset Local Administrator Password" description="" disable="false" continueOnError="false" successCodeList="0 3010">
        <defaultVarList>
          <variable name="ScriptName" property="ScriptName">%SCRIPTROOT%\ZTIReset-AdministratorPassword.ps1</variable>
          <variable name="Parameters" property="Parameters">-Password $TSEnv:AdminPassword</variable>
          <variable name="PackageID" property="PackageID" />
        </defaultVarList>
        <action>cscript.exe "%SCRIPTROOT%\ZTIPowerShell.wsf</action>
      </step>
      <action />
      <step type="SMS_TaskSequence_ApplyNetworkSettingsAction" name="Apply Network Settings" disable="false" continueOnError="false" successCodeList="0" description="" startIn="">
        <action>cscript.exe "%SCRIPTROOT%\ZTINICConfig.wsf"</action>
        <defaultVarList>
          <variable name="OSDAdapterCount" property="NumAdapters">0</variable>
          <variable name="OSDAdapter" property="Adapters">0</variable>
        </defaultVarList>
      </step>
      <step name="Tattoo" disable="false" continueOnError="true" successCodeList="0 3010" description="" startIn="">
        <action>cscript.exe "%SCRIPTROOT%\ZTITatoo.wsf"</action>
        <defaultVarList>
          <variable name="RunAsUser" property="RunAsUser">false</variable>
          <variable name="SMSTSRunCommandLineUserName" property="SMSTSRunCommandLineUserName"></variable>
          <variable name="SMSTSRunCommandLineUserPassword" property="SMSTSRunCommandLineUserPassword"></variable>
          <variable name="LoadProfile" property="LoadProfile">false</variable>
        </defaultVarList>
      </step>
    </group>
    <group expand="true" name="Join the computer to the domain." description="" disable="false" continueOnError="false">
      <action />
      <step type="BDD_RunPowerShellAction" name="Rename Computer" description="" disable="false" continueOnError="false" successCodeList="0 3010">
        <defaultVarList>
          <variable name="ScriptName" property="ScriptName">%SCRIPTROOT%\ZTIRename-Computer.ps1</variable>
          <variable name="Parameters" property="Parameters">-Name $TSEnv:OSDComputerName</variable>
          <variable name="PackageID" property="PackageID" />
        </defaultVarList>
        <action>cscript.exe "%SCRIPTROOT%\ZTIPowerShell.wsf</action>
        <condition />
      </step>
      <step type="SMS_TaskSequence_RebootAction" name="Restart computer" description="" disable="false" continueOnError="false" runIn="WinPEandFullOS" successCodeList="0 3010">
        <defaultVarList>
          <variable name="SMSRebootMessage" property="Message" />
          <variable name="SMSRebootTimeout" property="MessageTimeout">60</variable>
          <variable name="SMSRebootTarget" property="Target" />
        </defaultVarList>
        <action>smsboot.exe /target:WinPE</action>
      </step>
      <step type="BDD_RecoverDomainJoin" name="Recover From Domain " description="" disable="false" continueOnError="false" runIn="WinPEandFullOS" successCodeList="0 3010">
        <defaultVarList>
          <variable name="DomainErrorRecovery" property="DomainErrorRecovery">Auto</variable>
        </defaultVarList>
        <action>cscript.exe "%SCRIPTROOT%\ZTIDomainJoin.wsf" </action>
      </step>
    </group>
  </group>
</sequence>